//
//  HMNetwork.h
//  仿真开发
//
//  Created by jieChen on 17/3/23.
//  Copyright © 2017年 B.HOPE. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

@interface HMNetwork : AFHTTPSessionManager

+ (instancetype) sharedTool;


- (void)reqeustWithURL: (NSString *)url method:(NSString *)method parameters:(NSDictionary *)parameters callBack:(void (^)(id response)) callBack;

/**
 *  网络请求工具类POST请求的主方法
 *
 *  @param URLString 请求地址
 *  @param parameters 请求参数
 *  @param success   成功的回调
 *  @param faile     失败的回调
 */
- (void)POSTWithURLString:(NSString *)URLString parameters:(id)parameters success:(void(^)(id responseObject))success faile:(void(^)(NSError *error))faile;
@end
